<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>gozerlib.threads.thr &mdash; GOZERWAVE v0.1 BETA documentation</title>
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '0.1 BETA',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="top" title="GOZERWAVE v0.1 BETA documentation" href="../../index.html" />
    <link rel="next" title="gozerlib.threads.threadloop" href="threadloop.html" />
    <link rel="prev" title="gozerlib.threads.threadloop" href="threadloop.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="threadloop.html" title="gozerlib.threads.threadloop"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="threadloop.html" title="gozerlib.threads.threadloop"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">GOZERWAVE v0.1 BETA documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-gozerlib.threads.thr">
<h1>gozerlib.threads.thr<a class="headerlink" href="#module-gozerlib.threads.thr" title="Permalink to this headline">¶</a></h1>
<p>own threading wrapper.</p>
<dl class="class">
<dt id="gozerlib.threads.thr.Botcommand">
<em class="property">class </em><tt class="descclassname">gozerlib.threads.thr.</tt><tt class="descname">Botcommand</tt><big>(</big><em>group</em>, <em>target</em>, <em>name</em>, <em>args</em>, <em>kwargs</em><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.Botcommand" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a title="(in Python v2.7)" class="reference external" href="http://docs.python.org/dev/library/threading.html#threading.Thread"><tt class="xref docutils literal"><span class="pre">threading.Thread</span></tt></a></p>
<p>thread for running bot commands.</p>
<dl class="method">
<dt id="gozerlib.threads.thr.Botcommand.join">
<tt class="descname">join</tt><big>(</big><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.Botcommand.join" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="gozerlib.threads.thr.Botcommand.run">
<tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.Botcommand.run" title="Permalink to this definition">¶</a></dt>
<dd>run the bot command.</dd></dl>

</dd></dl>

<dl class="class">
<dt id="gozerlib.threads.thr.Thr">
<em class="property">class </em><tt class="descclassname">gozerlib.threads.thr.</tt><tt class="descname">Thr</tt><big>(</big><em>group</em>, <em>target</em>, <em>name</em>, <em>args</em>, <em>kwargs</em><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.Thr" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a title="(in Python v2.7)" class="reference external" href="http://docs.python.org/dev/library/threading.html#threading.Thread"><tt class="xref docutils literal"><span class="pre">threading.Thread</span></tt></a></p>
<p>thread wrapper.</p>
<dl class="method">
<dt id="gozerlib.threads.thr.Thr.join">
<tt class="descname">join</tt><big>(</big><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.Thr.join" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="gozerlib.threads.thr.Thr.run">
<tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.Thr.run" title="Permalink to this definition">¶</a></dt>
<dd>run the thread.</dd></dl>

</dd></dl>

<dl class="function">
<dt id="gozerlib.threads.thr.getname">
<tt class="descclassname">gozerlib.threads.thr.</tt><tt class="descname">getname</tt><big>(</big><em>func</em><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.getname" title="Permalink to this definition">¶</a></dt>
<dd>get name of function/method.</dd></dl>

<dl class="function">
<dt id="gozerlib.threads.thr.start_bot_command">
<tt class="descclassname">gozerlib.threads.thr.</tt><tt class="descname">start_bot_command</tt><big>(</big><em>func</em>, <em>arglist</em>, <em>kwargs={}</em><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.start_bot_command" title="Permalink to this definition">¶</a></dt>
<dd>start a new thread .. set name to function/method name.</dd></dl>

<dl class="function">
<dt id="gozerlib.threads.thr.start_new_thread">
<tt class="descclassname">gozerlib.threads.thr.</tt><tt class="descname">start_new_thread</tt><big>(</big><em>func</em>, <em>arglist</em>, <em>kwargs=None</em><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.start_new_thread" title="Permalink to this definition">¶</a></dt>
<dd>start a new thread .. set name to function/method name.</dd></dl>

<dl class="function">
<dt id="gozerlib.threads.thr.threaded">
<tt class="descclassname">gozerlib.threads.thr.</tt><tt class="descname">threaded</tt><big>(</big><em>func</em><big>)</big><a class="headerlink" href="#gozerlib.threads.thr.threaded" title="Permalink to this definition">¶</a></dt>
<dd>threading decorator.</dd></dl>

<div class="section" id="code">
<h2>code<a class="headerlink" href="#code" title="Permalink to this headline">¶</a></h2>
<div class="highlight-python"><table class="highlighttable"><tr><td class="linenos"><pre>  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154</pre></td><td class="code"><div class="highlight"><pre><span class="c"># gozerbot/thr.py</span>
<span class="c">#</span>
<span class="c">#</span>

<span class="sd">&quot;&quot;&quot; own threading wrapper. &quot;&quot;&quot;</span>

<span class="n">__copyright__</span> <span class="o">=</span> <span class="s">&#39;this file is in the public domain&#39;</span>

<span class="c"># gozerbot imports</span>
<span class="kn">from</span> <span class="nn">gozerlib.utils.exception</span> <span class="kn">import</span> <span class="n">handle_exception</span>

<span class="c"># basic imports</span>
<span class="kn">import</span> <span class="nn">threading</span>
<span class="kn">import</span> <span class="nn">re</span>
<span class="kn">import</span> <span class="nn">time</span>
<span class="kn">import</span> <span class="nn">thread</span>
<span class="kn">import</span> <span class="nn">logging</span>

<span class="n">dontshowthreads</span> <span class="o">=</span> <span class="p">[</span><span class="s">&#39;Periodical.runjob&#39;</span><span class="p">,</span> <span class="p">]</span>

<span class="c"># regular expression to determine thread name</span>
<span class="n">methodre</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">&#39;method\s+(\S+)&#39;</span><span class="p">,</span> <span class="n">re</span><span class="o">.</span><span class="n">I</span><span class="p">)</span>
<span class="n">funcre</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s">&#39;function\s+(\S+)&#39;</span><span class="p">,</span> <span class="n">re</span><span class="o">.</span><span class="n">I</span><span class="p">)</span>

<span class="k">class</span> <span class="nc">Botcommand</span><span class="p">(</span><span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="p">):</span>

    <span class="sd">&quot;&quot;&quot; thread for running bot commands. &quot;&quot;&quot;</span>

    <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">group</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">):</span>
        <span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="bp">None</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">)</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">ievent</span> <span class="o">=</span> <span class="n">args</span><span class="p">[</span><span class="mf">1</span><span class="p">]</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">setDaemon</span><span class="p">(</span><span class="bp">True</span><span class="p">)</span>

    <span class="k">def</span> <span class="nf">join</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>

    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>

        <span class="sd">&quot;&quot;&quot; run the bot command. &quot;&quot;&quot;</span>

        <span class="k">try</span><span class="p">:</span>
            <span class="n">logging</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s">&#39;thr - running bot command thread </span><span class="si">%s</span><span class="s">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="p">)</span> 
            <span class="n">result</span> <span class="o">=</span> <span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>

            <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">ievent</span><span class="o">.</span><span class="n">closequeue</span><span class="p">:</span>
                <span class="n">logging</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s">&#39;thr- closing queue for </span><span class="si">%s</span><span class="s">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">ievent</span><span class="o">.</span><span class="n">userhost</span><span class="p">)</span>
                <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">ievent</span><span class="o">.</span><span class="n">queues</span><span class="p">:</span>
                    <span class="n">i</span><span class="o">.</span><span class="n">put_nowait</span><span class="p">(</span><span class="bp">None</span><span class="p">)</span>

        <span class="k">except</span> <span class="ne">Exception</span><span class="p">,</span> <span class="n">ex</span><span class="p">:</span>
            <span class="n">handle_exception</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">ievent</span><span class="p">)</span>
            <span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mf">1</span><span class="p">)</span>

<span class="k">class</span> <span class="nc">Thr</span><span class="p">(</span><span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="p">):</span>

    <span class="sd">&quot;&quot;&quot; thread wrapper. &quot;&quot;&quot;</span>

    <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">group</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">):</span>
        <span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="bp">None</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">)</span>
        <span class="n">logging</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s">&#39;thr - running </span><span class="si">%s</span><span class="s"> .. args: </span><span class="si">%s</span><span class="s">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="p">))</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">setDaemon</span><span class="p">(</span><span class="bp">True</span><span class="p">)</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
        <span class="c">#time.sleep(0.001)</span>

    <span class="k">def</span> <span class="nf">join</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>

    <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="sd">&quot;&quot;&quot; run the thread. &quot;&quot;&quot;</span>
        <span class="k">try</span><span class="p">:</span>
            <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">dontshowthreads</span><span class="p">:</span>
                <span class="n">logging</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s">&#39;thr - running thread </span><span class="si">%s</span><span class="s">&#39;</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="p">)</span> 
            <span class="n">threading</span><span class="o">.</span><span class="n">Thread</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
        <span class="k">except</span> <span class="ne">Exception</span><span class="p">,</span> <span class="n">ex</span><span class="p">:</span>
            <span class="n">handle_exception</span><span class="p">()</span>
            <span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mf">1</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">getname</span><span class="p">(</span><span class="n">func</span><span class="p">):</span>

    <span class="sd">&quot;&quot;&quot; get name of function/method. &quot;&quot;&quot;</span>

    <span class="n">name</span> <span class="o">=</span> <span class="s">&quot;&quot;</span>

    <span class="n">method</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="n">methodre</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">func</span><span class="p">))</span>
    <span class="k">if</span> <span class="n">method</span><span class="p">:</span>
        <span class="n">name</span> <span class="o">=</span> <span class="n">method</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mf">1</span><span class="p">)</span>
    <span class="k">else</span><span class="p">:</span> 
        <span class="n">function</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">search</span><span class="p">(</span><span class="n">funcre</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">func</span><span class="p">))</span>
        <span class="k">if</span> <span class="n">function</span><span class="p">:</span>
            <span class="n">name</span> <span class="o">=</span> <span class="n">function</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="mf">1</span><span class="p">)</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">name</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">func</span><span class="p">)</span>
    <span class="k">return</span> <span class="n">name</span>

<span class="k">def</span> <span class="nf">start_new_thread</span><span class="p">(</span><span class="n">func</span><span class="p">,</span> <span class="n">arglist</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>

    <span class="sd">&quot;&quot;&quot; start a new thread .. set name to function/method name.&quot;&quot;&quot;</span>

    <span class="k">if</span> <span class="ow">not</span> <span class="n">kwargs</span><span class="p">:</span>
        <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{}</span>

    <span class="k">try</span><span class="p">:</span>
        <span class="n">name</span> <span class="o">=</span> <span class="n">getname</span><span class="p">(</span><span class="n">func</span><span class="p">)</span>

        <span class="k">if</span> <span class="ow">not</span> <span class="n">name</span><span class="p">:</span>
            <span class="n">name</span> <span class="o">=</span> <span class="s">&#39;noname&#39;</span>

        <span class="n">thread</span> <span class="o">=</span> <span class="n">Thr</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="n">func</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="o">=</span><span class="n">arglist</span><span class="p">,</span> \
<span class="n">kwargs</span><span class="o">=</span><span class="n">kwargs</span><span class="p">)</span>

        <span class="n">logging</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s">&#39;thr - starting </span><span class="si">%s</span><span class="s"> thread&#39;</span> <span class="o">%</span> <span class="nb">str</span><span class="p">(</span><span class="n">func</span><span class="p">))</span>
        <span class="n">thread</span><span class="o">.</span><span class="n">start</span><span class="p">()</span>

        <span class="k">return</span> <span class="n">thread</span>

    <span class="k">except</span><span class="p">:</span>
        <span class="n">handle_exception</span><span class="p">()</span>
        <span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mf">1</span><span class="p">)</span>

<span class="c">#@locked</span>
<span class="k">def</span> <span class="nf">start_bot_command</span><span class="p">(</span><span class="n">func</span><span class="p">,</span> <span class="n">arglist</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">=</span><span class="p">{}):</span>

    <span class="sd">&quot;&quot;&quot; start a new thread .. set name to function/method name. &quot;&quot;&quot;</span>

    <span class="k">if</span> <span class="ow">not</span> <span class="n">kwargs</span><span class="p">:</span>
        <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{}</span>

    <span class="k">try</span><span class="p">:</span>
        <span class="n">name</span> <span class="o">=</span> <span class="n">getname</span><span class="p">(</span><span class="n">func</span><span class="p">)</span>

        <span class="k">if</span> <span class="ow">not</span> <span class="n">name</span><span class="p">:</span>
            <span class="n">name</span> <span class="o">=</span> <span class="s">&#39;noname&#39;</span>

        <span class="n">thread</span> <span class="o">=</span> <span class="n">Botcommand</span><span class="p">(</span><span class="n">group</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="n">func</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="n">name</span><span class="p">,</span> <span class="n">args</span><span class="o">=</span><span class="n">arglist</span><span class="p">,</span> \
<span class="n">kwargs</span><span class="o">=</span><span class="n">kwargs</span><span class="p">)</span>

        <span class="n">logging</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s">&#39;thr - starting </span><span class="si">%s</span><span class="s"> thread&#39;</span> <span class="o">%</span> <span class="nb">str</span><span class="p">(</span><span class="n">func</span><span class="p">))</span>
        <span class="n">thread</span><span class="o">.</span><span class="n">start</span><span class="p">()</span>

        <span class="k">return</span> <span class="n">thread</span>

    <span class="k">except</span><span class="p">:</span>
        <span class="n">handle_exception</span><span class="p">()</span>
        <span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mf">1</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">threaded</span><span class="p">(</span><span class="n">func</span><span class="p">):</span>

    <span class="sd">&quot;&quot;&quot; threading decorator. &quot;&quot;&quot;</span>

    <span class="k">def</span> <span class="nf">threadedfunc</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
        <span class="n">start_new_thread</span><span class="p">(</span><span class="n">func</span><span class="p">,</span> <span class="n">args</span><span class="p">,</span> <span class="n">kwargs</span><span class="p">)</span>

    <span class="k">return</span> <span class="n">threadedfunc</span>
</pre></div>
</td></tr></table></div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="../../index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="">gozerlib.threads.thr</a><ul>
<li><a class="reference external" href="#code">code</a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="threadloop.html"
                                  title="previous chapter">gozerlib.threads.threadloop</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="threadloop.html"
                                  title="next chapter">gozerlib.threads.threadloop</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../../_sources/gozerlib/threads/thr.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="../../search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="threadloop.html" title="gozerlib.threads.threadloop"
             >next</a> |</li>
        <li class="right" >
          <a href="threadloop.html" title="gozerlib.threads.threadloop"
             >previous</a> |</li>
        <li><a href="../../index.html">GOZERWAVE v0.1 BETA documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2009, Bart Thate.
      Last updated on Nov 14, 2009.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
    </div>
  </body>
</html>